﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace source
{
    public partial class PrikazKorisnikaForma : Form
    {
        private Ucenik u;
        private Direktor d;

        private DirektorKontrola dirControl;
        private PedagogKontrola pdControl;
        private UcenikKontrola uControl;
        private ProfesorKontrola profControl;
        private Pedagog pg;
        private Profesor pr;
      

        public PrikazKorisnikaForma()
        {
            InitializeComponent();
        }

        public PrikazKorisnikaForma(Ucenik u)
        {
            // TODO: Complete member initialization
            InitializeComponent();
            this.u = u;
            this.uControl = new UcenikKontrola(u);
            this.SuspendLayout();

            this.uControl.Dock = System.Windows.Forms.DockStyle.Top;
            this.uControl.Location = new System.Drawing.Point(0, 0);
            this.uControl.Name = "uControl";
            this.uControl.Size = new System.Drawing.Size(426, 409);
            this.uControl.TabIndex = 0;

            //this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            //this.ClientSize = new System.Drawing.Size(426, 487);
            this.Controls.Add(this.uControl);
            this.Name = "PrikazKorisnikaForma";
            this.Text = "Korisnik";
            this.ResumeLayout(false);
            
        }

        public PrikazKorisnikaForma(Direktor d)
        {
            // TODO: Complete member initialization
            InitializeComponent();
            this.d = d;
            this.dirControl = new DirektorKontrola(d);
            this.SuspendLayout();
            
            this.dirControl.Dock = System.Windows.Forms.DockStyle.Top;
            this.dirControl.Location = new System.Drawing.Point(0, 0);
            this.dirControl.Name = "dirControl";
            this.dirControl.Size = new System.Drawing.Size(426, 409);
            this.dirControl.TabIndex = 0;

            //this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            //this.ClientSize = new System.Drawing.Size(426, 487);
            this.Controls.Add(this.dirControl);
            this.Name = "PrikazKorisnikaForma";
            this.Text = "Korisnik";
            this.ResumeLayout(false);
            
        }

        public PrikazKorisnikaForma(Pedagog pg)
        {
            // TODO: Complete member initialization
            InitializeComponent();
            this.pg = pg;
            this.pdControl = new PedagogKontrola(pg);
            this.SuspendLayout();

            this.pdControl.Dock = System.Windows.Forms.DockStyle.Top;
            this.pdControl.Location = new System.Drawing.Point(0, 0);
            this.pdControl.Name = "pdControl";
            this.pdControl.Size = new System.Drawing.Size(426, 409);
            this.pdControl.TabIndex = 0;

            //this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            //this.ClientSize = new System.Drawing.Size(426, 487);
            this.Controls.Add(this.pdControl);
            this.Name = "PrikazKorisnikaForma";
            this.Text = "Korisnik";
            this.ResumeLayout(false);
        }

        public PrikazKorisnikaForma(Profesor pr)
        {
            // TODO: Complete member initialization
            InitializeComponent();
            this.pr = pr;

            this.profControl = new ProfesorKontrola(pr);
            this.SuspendLayout();

            this.profControl.Dock = System.Windows.Forms.DockStyle.Top;
            this.profControl.Location = new System.Drawing.Point(0, 0);
            this.profControl.Name = "profControl";
            this.profControl.Size = new System.Drawing.Size(426, 409);
            this.profControl.TabIndex = 0;

            //this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            //this.ClientSize = new System.Drawing.Size(426, 487);
            this.Controls.Add(this.profControl);
            this.Name = "PrikazKorisnikaForma";
            this.Text = "Korisnik";
            this.ResumeLayout(false);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
